
<%@ page import="iceportal1.Office" %>
<div id="office" >
        <g:set var="entityName" value="${message(code: 'office.label', default: 'Office')}" />
        <div class="nav">
            <span class="menuButton"><g:remoteLink class="create" action="create" update="office"><g:message code="default.new.label" args="[entityName]" /></g:remoteLink></span>
        </div>
        <div class="body">
            <h1><g:message code="default.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                       
                            <g:sortableColumn property="name" title="${message(code: 'office.name.label', default: 'Name')}" />
                        
                            <th></th>
                        
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${officeInstanceList}" status="i" var="officeInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:remoteLink action="show" id="${officeInstance.name}" update="office">${fieldValue(bean: officeInstance, field: "name")}</g:remoteLink></td>
                        
                            <td><g:link action="main" id="${officeInstance.name}"><img src="../../images/skin/house.png" border="0"/></g:link></td>
                        
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${officeInstanceTotal}" />
            </div>
        </div>
     </div>
